package com.zrwl.poscloud.core.restapi.file;

import com.zrwl.poscloud.commons.utils.ResultUtil;
import com.zrwl.poscloud.xo.service.FileInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/syncApi")
public class SyncApi {
    @Autowired
    FileInfoService fileInfoService;

    @RequestMapping("/getListBySyncCode")
    public String getListBySyncCode(long downloadSyncCode) {
        List record = fileInfoService.findListBySyncCode(downloadSyncCode);
        return ResultUtil.successWithData(record);
    }
}
